#include <iostream>
#include <vector>
#include <iomanip>
#include <commify.h>

#include <boost/assign/std/vector.hpp> // for 'operator+=()'
#include <boost/assert.hpp>
#include <boost/foreach.hpp>

using std::vector;

int main (int argc, char *argv[])
{
	using namespace boost::assign; // bring 'operator+=()' into scope

	std::vector<int> vi;
	vi += 0, 1, 12, 123, 1234, 12345, 123456, 1234567, 12345678, 123456789, 1234567890;
	unsigned width = 12;
	BOOST_FOREACH(int i, vi) 
	{
		std::cerr << std::setw(width)	<< i << " => " << std::setw(width) << commify(i) 
					<< "\n";
		std::cerr << std::setw(width)	<< -i << " => " << std::setw(width) << commify(-i) 
					<< "\n";
	}
	return(0);
}

